#ifndef PROJECT_ADD_RVIZBTN_H
#define PROJECT_ADD_RVIZBTN_H
#include <ros/ros.h>
#include <ros/ros.h>
#include <rviz/panel.h>
#include <QString>
#include <QPushButton>
#include <QHBoxLayout>
#include <std_msgs/String.h>


namespace rviz_button_plugin{
    class AddRvizBtn : public rviz::Panel{
        Q_OBJECT
        public:
            AddRvizBtn(QWidget* parent = 0);
            virtual void load(const rviz::Config& config);
            virtual void save(rviz::Config config) const;
            // ~AddRvizBtn();  //不用的函数要注释，或者直接不写
        private Q_SLOTS:
            void add_btn1();
            void add_btn2();
        private:
            QPushButton* btn1_;
            QPushButton* btn2_;
            ros::NodeHandle nh_;
            ros::Publisher btn_pub1_,btn_pub2_;
    };
}

#endif //PROJECT_ADD_RVIZBTN_H